home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / rcs / gadgetlist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  142 lines

  1. head    1.3;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.3; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.3
  10. date    98.01.13.20.02.45;    author dlorre;    state Exp;
  11. branches;
  12. next    1.2;
  13.  
  14. 1.2
  15. date    97.07.14.04.24.37;    author dlorre;    state Exp;
  16. branches;
  17. next    1.1;
  18.  
  19. 1.1
  20. date    96.08.22.02.05.49;    author dlorre;    state Exp;
  21. branches;
  22. next    ;
  23.  
  24.  
  25. desc
  26. @Oui.lib -- Object User Interface
  27. Projet créé en 1994
  28. Auteur: Dominique Lorre
  29. @
  30.  
  31.  
  32. 1.3
  33. log
  34. @new function getcount()
  35. @
  36. text
  37. @// $Id: gadgetlist.h 1.2 1997/07/14 04:24:37 dlorre Exp dlorre $
  38. #ifndef CLASS_GADGETLIST_H
  39. #define CLASS_GADGETLIST_H
  40.  
  41. #ifndef EXEC_TYPES_H
  42. #include <exec/types.h>
  43. #endif
  44.  
  45. #ifndef GRAPHICS_TEXT_H
  46. #include "graphics/text.h"
  47. #endif
  48.  
  49. #ifndef INTUITION_INTUITION_H
  50. #include "intuition/intuition.h"
  51. #endif
  52.  
  53. #ifndef LIBRARIES_GADTOOLS_H
  54. struct NewGadget ;
  55. #endif
  56.  
  57. #ifndef CLASS_RECTANGLE_H
  58. #include "rectangle.h"
  59. #endif
  60.  
  61. class window ;
  62. class gadget ;
  63.  
  64. // ========================================================================
  65. // ==========================  GADGETLIST CLASS ===========================
  66. // ========================================================================
  67.  
  68. class gadgetlist : public rectangle
  69. {
  70. friend class gadget ;
  71.     gadget  **gtab ;
  72.     WORD    count ;         // How many gadgets are currently here ?
  73.     WORD    max ;           // How many gadgets max available ?
  74.  
  75.     IntuiText   *it ;
  76.     TTextAttr   PlainAttr ;
  77.     TTextAttr   BoldAttr ;
  78.     TextFont    *bfont ;
  79. public:
  80.     UBYTE       gpen ;
  81.     window      *win ;      // owner of the gadgetlist
  82.     NewGadget   *ng ;
  83.     Gadget      *glist ;
  84.     Gadget      *gad ;
  85.     Window      *wp ;
  86.  
  87.     long        fontheight ;
  88.     BOOL        initok ;
  89.  
  90.     gadgetlist(window *w, short gmax) ;      // the creator
  91.     ~gadgetlist() ;                         // the destructor
  92.     void processgadget(LONG id,
  93.                        unsigned long,
  94.                        unsigned short) ;    // events processing
  95.     void addgadgets() ;                     // add glist to window
  96.     void updategadgets() ;                  // window opened with glist
  97.     void setfont(TTextAttr *) ;
  98.     void setdefault(BOOL bolden) ;
  99.     long ltext(const char *) ;
  100.     long lmax(const char **) ;
  101.     long lmax(const char *, ...) ;
  102.     void setgpen(UBYTE g) { gpen=g ;}
  103.     void selectgadget(LONG id, BOOL shifted) ;
  104.     void parsegadgets(USHORT code) ;
  105.     gadget *getgadget(LONG id) ;
  106.     WORD getcount() { return count ; }
  107. } ;
  108.  
  109.  
  110.  
  111. #endif
  112. @
  113.  
  114.  
  115. 1.2
  116. log
  117. @*** empty log message ***
  118. @
  119. text
  120. @d1 1
  121. a1 1
  122. // $Id$
  123. d70 1
  124. @
  125.  
  126.  
  127. 1.1
  128. log
  129. @Initial revision
  130. @
  131. text
  132. @d1 1
  133. a26 1
  134. class gadgetlist ;
  135. d52 1
  136. d63 3
  137. a65 3
  138.     long ltext(STRPTR) ;
  139.     long lmax(STRPTR *) ;
  140.     long lmax(STRPTR, ...) ;
  141. @
  142.